#ifndef __StarBugs_Popup_chapterUnlockAndGift_H__
#define __StarBugs_Popup_chapterUnlockAndGift_H__
#include "cocos2d.h"
#include "Object/LabelNumber.h"
USING_NS_CC;

enum{
	chapterUnlockAndGift_btn_close,
	chapterUnlockAndGift_btn_ok,
};


class Popup_chapterUnlockAndGift : public CCLayerColor
{
public:
	bool init();
	CREATE_FUNC(Popup_chapterUnlockAndGift);
	void openPopup();
	void closePopup();
	int touchEnded(CCPoint pt);
	void setChaptersNum(int num);

private:
	void clickedEnable();

	CCSize winSize;
	CCLayer *mainLayer;
	CCSprite *bg_block;
	CCSprite *btn_close;
	CCSprite *btn_ok;
	LabelNumber *myNumber;

	bool isClickedEnable;
};

#endif